<?php 
include('../common.php');
if($_SESSION['log_levelcode'] != 'UPL')
		header( 'Location: ../logout.php' ) ;


?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<title><?php echo $lang['PAGE_TITLE']; ?></title>
<link media="screen" rel="stylesheet" type="text/css" href="../css/admin.css"  />
<!--[if lte IE 6]><link media="screen" rel="stylesheet" type="text/css" href="css/admin-ie.css" /><![endif]-->
<!-- aurora-theme is default -->

<link media="screen" rel="stylesheet" type="text/css" href="../css/admin-blue.css"  />
<link type="text/css" href="../css/smoothness/jquery-ui-1.8.16.custom.css" rel="stylesheet" />	


<script type="text/javascript" src="../js/behaviour.js"></script>
<script type="text/javascript" src="../js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="../js/jquery-ui-1.8.16.custom.min.js"></script>
<script>
	$(function() {
		$('.delete').click(function () { 
			if(confirmation()){
				return true;
			}
			else{
				return false;
			}
		});
	});
	
	function confirmation() {
			var answer = confirm("Anda pasti mahu hapuskan rekod ini?")
			if (answer){
				return true;
			}
			else{
				return false;
			}
	}
</script>
</head>

<body>

	<!--[if !IE]>start wrapper<![endif]-->
	<div id="wrapper">
		
		
		<!--[if !IE]>start header main menu<![endif]-->
		
		<div id="header_main_menu">
		<span id="header_main_menu_bg"></span>
		
		<!--[if !IE]>start header<![endif]-->
		<div id="header">
			<div class="inner">
				<h1 id="logo"><a href="#"><?php echo $lang['PAGE_TITLE']; ?></a></h1>
				
				<!--[if !IE]>start user details<![endif]-->
				<div id="user_details">
					<ul id="user_details_menu">
						<li class="welcome"><?php echo $lang['CONTENT_WELCOME']; ?> <strong><?php echo $_SESSION['log_name']; ?></strong></li>
						
						<li>
							<ul id="user_access">
								<li class="first"><a href="pAkaun.php"><?php echo $lang['CONTENT_MY_ACCOUNT']; ?></a></li>
								<li class="last"><a href="../logout.php"><?php echo $lang['CONTENT_LOGOUT']; ?></a></li>
							</ul>
						</li>
						
						
					</ul>
					
					<div id="server_details">
						<dl>
							<dt><?php echo $lang['CONTENT_SERVERTIME']; ?> :</dt>
							<dd><?php echo $today = date("F j, Y, g:i a"); ?></dd>
						</dl>
						<dl>
							<dt><?php echo $lang['CONTENT_SERVERIP']; ?> :</dt>
							<dd><?php  echo $_SERVER['REMOTE_ADDR']; ?></dd>
						</dl>
					</div>
					
				</div>
				
				<!--[if !IE]>end user details<![endif]-->
			</div>
		</div>
		<!--[if !IE]>end header<![endif]-->
		
		<?php
			$curPageName=curPageName();
			//echo "<br/>The current page name is ".curPageName();
		?>
		
		<!--[if !IE]>start main menu<![endif]-->
		<div id="main_menu">
			<div class="inner">
			<ul>
				<li>
				    <?php
					$upload = substr($curPageName, 0, 6); //aPenerimaan
					?>
					<a href="upload.php" <?php if($upload == 'upload') echo 'class="selected_lk"'; ?> >
						<span class="l"><span></span></span><span class="m"><em><?php echo $lang['CONTENT_UPLOAD']; ?></em><span></span></span><span class="r"><span></span></span>
					</a>
					<?php if($upload == 'upload'){ ?>
					<ul>
						<li>
							<a href="upload.php"  <?php if($curPageName=='upload.php') echo 'class="selected_lk"'; ?>>
								<span class="l"><span></span></span><span class="m"><em><?php echo $lang['CONTENT_UPLOAD_MANAGE']; ?></em><span></span></span><span class="r"><span></span></span>
							</a>
						</li>
					</ul>
					<?php } ?>
				</li>
				
				
				<li style="float:right;"><a href="../logout.php" ><span class="l"><span></span></span><span class="m"><em><?php echo $lang['CONTENT_LOGOUT']; ?></em><span></span></span><span class="r"><span></span></span></a>
				
				</li>
				<li style="float:right;">
					<?php
					$pAkaun = substr($curPageName, 0, 6); //pAkaun
					?>
					<a href="pAkaun.php" <?php if($pAkaun == 'pAkaun') echo 'class="selected_lk"'; ?> >
						<span class="l"><span></span></span><span class="m"><em><?php echo $lang['CONTENT_MY_ACCOUNT']; ?></em><span></span></span><span class="r"><span></span></span>
					</a>
					<?php if($pAkaun == 'pAkaun'){ ?>
					<ul>
						<li>
							<a href="pAkaun.php"  <?php if($curPageName=='pAkaun.php') echo 'class="selected_lk"'; ?>>
								<span class="l"><span></span></span><span class="m"><em><?php echo $lang['CONTENT_MY_ACCOUNT_UPDATE']; ?></em><span></span></span><span class="r"><span></span></span>
							</a>
						</li>
						<li>
							<a href="pAkaunTukarPass.php" <?php if($curPageName=='pAkaunTukarPass.php') echo 'class="selected_lk"'; ?>>
								<span class="l"><span></span></span><span class="m"><em><?php echo $lang['CONTENT_MY_ACCOUNT_PASSWORD']; ?><</em><span></span></span><span class="r"><span></span></span>
							</a>
						</li>
					</ul>
					<?php } ?>
				</li>
				
			</ul>
			</div>
			<span class="sub_bg"></span>
		</div>
		<!--[if !IE]>end main menu<![endif]-->
		
		</div>
		<!--[if !IE]>end header main menu<![endif]-->